<?php
$this->pageTitle=Yii::app()->name . ' - 登录';
?>

<div id="login">
    <div id="content" class="login-box">
        <div class="box">
            <div class="box-top"></div>
            <div class="box-content">
                                <div class="head"><h2>商家登录</h2></div>
                <div class="sect">

                    <?php $form=$this->beginWidget('CActiveForm', array(
						'id'=>'login-form',
						'enableAjaxValidation'=>true,
					)); ?>
                       <div class="field username">
							<?php echo $form->labelEx($model,'username',array('for'=>"login-email-address")); ?>
							<?php echo $form->textField($model,'username',array('id'=>"login-email-address",'class'=>"f-input")); ?>
							<?php echo $form->error($model,'username'); ?>
						</div>
						<div class="field password">
							<?php echo $form->labelEx($model,'password',array('for'=>"login-password")); ?>
							<?php echo $form->passwordField($model,'password',array('id'=>"login-password",'class'=>"f-input",'size'=>"30")); ?>
							<?php echo $form->error($model,'password'); ?>
						</div>
						<div class="act">
							<?php echo CHtml::submitButton('登录',array('id'=>"login-submit",'class'=>"formbutton")); ?>
						</div>
					<?php $this->endWidget(); ?>

                </div>
                            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>